package org.chinarjy.dto;

import java.io.Serializable;

public class PersonSkillInfo extends PersonInfo implements Serializable {
    private String deptId;
    private String skill;

    public PersonSkillInfo() { }

    public PersonSkillInfo(long id, String name, int age, String email, String deptId, String skill) {
        super(id, name, age, email);
        this.deptId = deptId;
        this.skill = skill;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getSkill() {
        return skill;
    }

    public void setSkill(String skill) {
        this.skill = skill;
    }

    @Override
    public String toString() {
        return super.toString() + " PersonSkillInfo{" +
                "deptId='" + deptId + '\'' +
                ", skill='" + skill + '\'' +
                "} ";
    }
}
